FROM python:3.6
ENV PYTHONUNBUFFERED 1
ENV PYTHONOPTIMIZE 1
RUN mkdir /code
WORKDIR /app
COPY requirements.txt /app
RUN pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com
COPY . /app

CMD ["uwsgi", "--http", ":8000", "-w" , "scriptmanager.wsgi"]